package com.ylxn.creator;

public class Singleton01 {
    //私有构造方法
    private Singleton01(){}

    //私有化成员变量
    private static Singleton01 singleton01;

    //静态代码块对象初始化
    static {
        singleton01 = new Singleton01();
    }
    public Singleton01 getSingleton01(){
        return singleton01;
    }
}
